<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .bgRed {
      background: red;
    }
  </style>
  <body>
    <div id="app">
      <div v-on:click="printData('name','张三')">{{name}}</div>
      <div>hh{{age}}</div>
      <div>{{getAge}}</div>
      <div>{{newObj}}</div>
      <div>{{getAge}}</div>
      <div>{{getSchool}}</div>
      <div>{{getAge}}</div>
      <div>{{school}}</div>
      <div v-bind:class="className">{{name}}</div>
      <input type="text" v-model="name" />
      <input type="checkbox" v-model="checked" />
      <div>checked is: {{checked}}</div>
      <div>selectIndex is: {{selectIndex}}</div>
      <select v-model="selectIndex">
        <option value="Ipad">Ipad</option>
        <option value="Coco">Coco</option>
        <option value="HUAWEI">HUAWEI</option>
      </select>
      <coms></coms>
      <!-- 子组件显示 -->
      <scope-slot btnState></scope-slot>
      <!-- 子组件插槽有数据 -->
      <scope-slot>
        <template v-slot:default="slotKey">
          <div>{{slotKey}}</div>
        </template>
      </scope-slot>
    </div>
    <script type="module" src="./main copy.js"></script>
  </body>
</html>


